Guild icon
Gamemode 4 Labs
crossbow-cartridges
Avatar
BluePsychoRanger 13-Oct-19 10:23 PM
name TBD
Avatar
Dennis 13-Oct-19 10:26 PM
(any name suggestions are welcome)
Avatar
Thanathor 13-Oct-19 10:27 PM
Better Shooty Sticks
Avatar
Dennis 13-Oct-19 10:31 PM
At the moment the datapack can make the crossbow shoot the following items: (the arrow gets replaced by this and it copies the motion of this arrow) - Any type of fish in a bucket - Seeds, carrots, potatoes: gets planted with farmland when landing on top of any type of dirt block - All potions (splash, lingering): works as normal potions except they can be thrown far away - Anvil (Doesn't really make sense to be in the final version, but it's fun to play around with for the moment) (edited)
Avatar
tomh 13-Oct-19 10:33 PM
do fish do damage?
Avatar
Thanathor 13-Oct-19 10:33 PM
Maybe you could so something with like a lead, not entirely sure what
Avatar
Dennis 13-Oct-19 10:33 PM
It does require to run a command every tick (check if someone used a crossbow), but without this it wouldn't look right and could be very unreliable
like it needs to execute the commands directly after using the crossbow, otherwise the fish would only appear up to 30 blocks away (edited)
do you mean shoot a lead at an animal?
i like the idea but not sure if that's possible
Avatar
Thanathor 13-Oct-19 10:35 PM
Possibly, or a grapple effect, maybe you shoot it at an item/mob and it pulls it toward you
Avatar
tomh 13-Oct-19 10:35 PM
yeah
like a fishing rod?
Avatar
Dennis 13-Oct-19 10:35 PM
reverse fishing rod
(that's basically a grappling hook)
Avatar
Thanathor 13-Oct-19 10:36 PM
pretty much yes
Avatar
Dennis 13-Oct-19 10:37 PM
the fish don't do damage btw, except for pufferfish, which does damage by itself (edited)
that would also need another 20Hz clock because the fish go lightning fast
that also why i haven't done that ink thing yet that blinds players, it needs to detect the player quickly enough (edited)
Avatar
Bloo 13-Oct-19 10:53 PM
I'm sure there is an advancement for firing a crossbow
you could use that to trigger a function
Avatar
Dennis 13-Oct-19 11:58 PM
Gamemode 4 Datapacks. Contribute to Dennis-0/GM4_Datapacks development by creating an account on GitHub.
I just used a scoreboard to check for when a player fires a crossbow but advancement would be better
anyway, here it is if you want to try it yourself
only thing is that when firing a seed at an angle, it will just slide across the ground until the gm4 clock detects it, but I think the only way to fix this is by placing it on a 20hz clock
Avatar
Misode 14-Oct-19 12:06 AM
Contribute to skylinerw/guides development by creating an account on GitHub.
Avatar
Dennis 14-Oct-19 12:14 AM
That sounds very useful, I'm not sure how to use triggers yet but then I'll have something to look into
👌 1
Avatar
Dennis 14-Oct-19 12:12 PM
Updated on github with the advancement trigger
Also needs real advancements, so if anyone got some ideas let me know
Avatar
Dennis 14-Oct-19 01:13 PM
Is there a way to copy a potion effect with for example name 'long_invisibility' to a status effect as id number?
Wanted to give fish fired with tipped arrows that effect
Avatar
Kroppeb 14-Oct-19 01:59 PM
Not that i know
Minecraft is really inconsistent about it
using but numerical and string
I guess you can copy it to a potion and let it fall onto the fish?
Avatar
Dennis 14-Oct-19 02:04 PM
it would give the player the effect as well then
Avatar
Dennis 14-Oct-19 05:11 PM
Other possible additions: - Fire charge: shoots a blaze fireball (basically better fire module, can be used for griefing) - Torch: light up caves by shooting the torches in the caves - Lead: shoot at animal to put a lead on it
I'll just try to add whatever I can think of, they can be disabled very easily by commenting out 1 line
Avatar
tomh 14-Oct-19 05:18 PM
I mean, what about a way to shoot Ghast Balls?
Avatar
Dennis 14-Oct-19 05:27 PM
Thought the smaller ones would make more sense
But could do the big ones instead
Maybe play with damage values
Also because the fire charge is basically a blaze fireball
Avatar
tomh 14-Oct-19 05:50 PM
It probably wouldnt make sense for fire charges, but a way to launch ghast fireballs would be really fun
Avatar
Dennis 14-Oct-19 06:34 PM
What's the difference with the small fireballs?
Or do you just want the bigger balls
Avatar
Misode 14-Oct-19 06:38 PM
Iirc small fireballs can't destroy blocks
Avatar
Bloo 14-Oct-19 06:44 PM
^
Avatar
Dennis 14-Oct-19 07:01 PM
I guess that's a good thing?
Avatar
Bloo 14-Oct-19 07:51 PM
yes
Avatar
tomh 14-Oct-19 08:48 PM
maybe ghast tears could fire off big balls?
Avatar
ToffeeMax 14-Oct-19 09:09 PM
big balls 🤤
Fire charge?
Avatar
tomh 14-Oct-19 09:59 PM
fire ball
Avatar
Dennis 14-Oct-19 10:00 PM
fire charge is the item
Avatar
Dennis 15-Oct-19 11:24 AM
Torches are working as well,, just need to get a list of all blocks torches can be placed on
the fireball doesn't seem to work, modifying its nbt doesn't make it move the way i want to (edited)
Avatar
Misode 15-Oct-19 11:50 AM
You need to modify direction iirc
Avatar
Dennis 15-Oct-19 12:04 PM
that makes it move but stops after a couple blocks (edited)
Avatar
Misode 15-Oct-19 12:24 PM
Did you set the life tag?` (edited)
Wait nvm, that has no effect
So probably needs some power
@Dennis
Avatar
Dennis 15-Oct-19 12:27 PM
oh yea power works indeed but copying the motion or direction of the arrow to the fireball didn't do anything
oh maybe they all need to be changed
Avatar
Dennis 15-Oct-19 01:15 PM
github is updated again
(now also has torches)
Avatar
Dennis 15-Oct-19 06:26 PM
for some reason the small fireball is invisible when summoned, it worked when i copy to both power and motion and creates some fire roughly where is aimed (edited)
Avatar
Dennis 15-Oct-19 07:19 PM
Everything seems to work now!, changed the way crops are fired so that works better now
Didn't do the leads because that didn't seem to work
(and leads bug out anyway so would probably break all the time)
Avatar
Nathan22211 16-Oct-19 05:21 PM
what about a full auto.. trait (whatever your calling them)
Avatar
tomh 16-Oct-19 07:08 PM
Full auto crossbows would be hilarious
Avatar
Dennis 16-Oct-19 07:10 PM
on it
(most likely won't be included in the pack though)
Avatar
Dennis 16-Oct-19 07:23 PM
oh nice now I can shoot pufferfish 20 times per second
(if you really want it, just put this command in a repeating command block: replaceitem entity @p hotbar.0 minecraft:crossbow{Charged:1b,ChargedProjectiles:[{id:"minecraft:arrow",Count:1b}]}
Avatar
ToffeeMax 16-Oct-19 11:36 PM
Still looking for a name @Dennis ?
Since it adds more ammo - what about calling it Cartridges?
Avatar
Dennis 16-Oct-19 11:43 PM
Yes if we can find a better one, but I think the name should tell you what it is
Cartridges could still be anything
Also need name for advancement, currently there's just an advancement for shooting a fish
Avatar
BluePsychoRanger 17-Oct-19 02:29 AM
Crossbow Cartridges ?
👍 1
Avatar
Thielith 17-Oct-19 08:20 AM
"Fish out of water" maybe for advancement name? "Seems fishy" could potentially work too.
Avatar
Tesset 17-Oct-19 06:01 PM
"Like shooting fish in a barrel" seems the obvious one there
Avatar
tomh 17-Oct-19 06:35 PM
Or have that be a secret achievement
Avatar
ToffeeMax 18-Oct-19 02:43 PM
@Dennis Want me to rename this to crossbow cartridges?
Avatar
Dennis 18-Oct-19 02:43 PM
If everyone thinks it's a good name, sure
Avatar
Andante 18-Oct-19 02:44 PM
sounds good
Avatar
ToffeeMax 18-Oct-19 02:44 PM
It is your module /shrug (edited)
Avatar
grian 18-Oct-19 02:44 PM
ooh cartridges sounds fun
Avatar
ToffeeMax 18-Oct-19 02:44 PM
But I get the crowdsourcing side
Avatar
grian 18-Oct-19 02:44 PM
what is this module about
Avatar
Dennis 18-Oct-19 02:44 PM
Download and see
I already made a pullrequest with description
So you can get it from there
Avatar
grian 18-Oct-19 02:45 PM
ah just scrolled up
i wanna start making textures for the RP for this
Avatar
Dennis 18-Oct-19 02:45 PM
Idk if the link i sent earlier still works
Avatar
grian 18-Oct-19 02:45 PM
wait nvm i cant
Avatar
Dennis 18-Oct-19 02:46 PM
I don't think there is need for textures
Avatar
grian 18-Oct-19 02:46 PM
since it doesnt apply anything to the potions itself or smth we cant retexture it
Avatar
Dennis 18-Oct-19 02:46 PM
It doesn't have special items
Avatar
grian 18-Oct-19 02:46 PM
yeah
i thought you were gonna aply some nbt to potions to make them potion cartridges that can be shot by crossbows but i guess not
would've been fun to make some potion in literal cartridges (edited)
Avatar
Dennis 18-Oct-19 02:47 PM
I mean I can add tags to the potions but it's not needed
Avatar
grian 18-Oct-19 02:47 PM
no need dw bout it
Avatar
Dennis 18-Oct-19 02:54 PM
You can also change the advancement name if you want, the current one is kinda like a placeholder
Avatar
tomh 18-Oct-19 07:10 PM
There could be custom textures in terms of load models for the crossbow
Avatar
Dennis 18-Oct-19 07:13 PM
The crossbow doesn't have any tags
Avatar
Dennis 23-Oct-19 11:28 AM
opened a new pull request for the namechange as that seemed easier
Avatar
ToffeeMax 23-Oct-19 05:27 PM
@Dennis Is this PR Open and fully submitted (edited)
Avatar
Dennis 23-Oct-19 05:27 PM
yes
not sure what that means but i submitted the code
and it's done
Avatar
Dennis 25-Oct-19 10:21 AM
Found a small issue, since torches can't be placed on all sides of a stair, you can't shoot a torch at the back side of it
Would it be worth it to add extra commands in case the torch is shot at a stair?
Same for fences/walls and that other blocks like that
Avatar
Misode 25-Oct-19 10:25 AM
Checking stairs seems complicated because you can't use a block tag to check blockstates
Avatar
Dennis 25-Oct-19 10:27 AM
it would just do a similar check like I did with chairs, but would also add 1 command for each exception
Minecraft is so inconsistent.. there's a tag for wool, but none for any of the other blocks with 16 colors, thought I would be able to get rid of half of that list
Avatar
Bloo 25-Oct-19 11:07 AM
Why dont you make a list of blocks that torches can't be placed onto?
Avatar
Dennis 25-Oct-19 11:09 AM
I'm not sure if that list will be much shorter
but I'll try
the folder "better_crossbows" sneaked in my master branch and in the PR. it's basically the same thing but the last commits are in "crossbow_cartridges" (edited)
and I have no clue how to remove that folder
Avatar
Bloo 25-Oct-19 11:14 AM
We could calculate the ratio of faces the torches can stick to vs ones they can't over all blocks
And then make it random
My guess is about 41%
Avatar
Misode 25-Oct-19 11:42 AM
The positive block tag is safer for future compatibility
Avatar
Dennis 25-Oct-19 11:42 AM
so I made the lists, there are 92 lines in the block tags where torches cannot be placed on, and 198 lines where torches can be placed on
Avatar
Misode 25-Oct-19 11:42 AM
The "Standard Command Library" datapack by Aeldrion for Minecraft 1.14+ - Aeldrion/AESTD
Avatar
Dennis 25-Oct-19 11:42 AM
i used that one
and added to it
there are quite a few non opaque blocks that torches can be placed on
just in case anyone wants to see it, here's the list of blocks torches can't be placed on (edited)
Avatar
Misode 25-Oct-19 11:59 AM
Don't you need two block tags, for both side and top variants?
You can place torches on op of anvils and top slabs, but you can't place them on the side
Avatar
Dennis 25-Oct-19 12:01 PM
oh that's true
well it's needed for top half slabs and anvils, now they are just not in the list
but you can't tell it to only do top half slabs in the block tags, right?
Avatar
Misode 25-Oct-19 12:02 PM
Hmm that's right
Avatar
Dennis 25-Oct-19 12:02 PM
so idk if it's worth another block tag just for anvils and possibly another block
(while it's mainly used in caves probably)
Avatar
Misode 25-Oct-19 12:03 PM
Tbh you could just copy the opaque block tag from aestd and be done with it. I don't think anyone will mind
Avatar
Dennis 25-Oct-19 12:03 PM
the list is done already
but there's no anvils for exmaple
Avatar
Misode 25-Oct-19 12:04 PM
They shouldn't be in the list
Avatar
Dennis 25-Oct-19 12:06 PM
so it should work with any block that torches can be placed on at the moment, except for sides of stairs, top slabs, on top of anvils/fence/wall/scaffolding/grindstone/bell/ironbars/glasspane/endrod (edited)
Avatar
Dennis 25-Oct-19 12:13 PM
so we could add another block tag which would have the same as the other blocks, but with above blocks added, if we want to
Avatar
Misode 25-Oct-19 12:29 PM
It might not be worth it as we can't detect blockstates
Avatar
Dennis 25-Oct-19 12:44 PM
I mean without slabs and stairs, the others don't have relevant blockstates
Hmm I just realized I could add some of these blocks to the list, because it wouldnt place the torch if the arrow is not inside an air block
Although it's not really worth it
Avatar
tomh 25-Oct-19 05:33 PM
The pufferfish were better than I could ever imagine
Avatar
Kroppeb 25-Oct-19 06:45 PM
Honestly I think it should always use a torch and just let it drop if it's invalid
You are shooting the torch after all
Avatar
Dennis 25-Oct-19 07:53 PM
True, good one
Avatar
Dennis 25-Oct-19 08:41 PM
Do you think it should give back or consume the arrow when shooting the different projectiles? Currently it only consumes the arrow when shooting torch/crop (edited)
Avatar
Dennis 25-Oct-19 09:01 PM
Changed it so it takes away the torch directly when shooting it and drops when not placing the torch. Only downside I can think of is that when hitting a mob with that arrow, the torch is gone
Avatar
Dennis 25-Oct-19 10:59 PM
should this be possible? in vanilla it's only possible to place a torch on top, but this doesn't seem unreasonable
Avatar
grian 25-Oct-19 11:17 PM
if its not possible on vanilla then imo dont do it
Avatar
BluePsychoRanger 26-Oct-19 12:18 AM
when placing the torch, clone the block it's on back to it's place (as long as it's not a skull or double tall plant or piston head, but the first whitelist should take care of that) to force a block update
Also, the arrow should always be consumed when firing the crossbow, I think of it as attaching the thing to the arrow then shooting it
👍 1
Avatar
Kroppeb 26-Oct-19 06:49 AM
Mmh, what happens if you clone the torch to itself?
Avatar
BluePsychoRanger 26-Oct-19 07:02 AM
nothing happens, the torch doesn't pop off
Avatar
Dennis 28-Oct-19 10:57 AM
(Just making a new PR because the other one was a mess, there are files that shouldnt even be there and this one has many file name changes) (edited)
Avatar
Dennis 28-Oct-19 11:05 AM
Can I just create a new fork of master? there are some commits in mine which I can't remove and I just want a fresh master without it saying my branch is many commits ahead of gamemode4dev
Avatar
Misode 28-Oct-19 11:25 AM
If you don't have any other open PRs, deleting your fork is the easiest
Better way would be like this: https://stackoverflow.com/a/42332860
I've completely messed up the master branch of my forked git repo. I want to completely reset the master branch that was pushed to my fork with the contents of the upstream master repo. I have no
@Dennis
Also I'm not sure what the problem was. Commits gets squashed anyways
Avatar
Dennis 28-Oct-19 11:28 AM
I've used the browser for everything so far, but I guess this would work as well
well the problem was that another folder was in the PR, but i found a way to delete that now
Avatar
Misode 28-Oct-19 12:17 PM
Omg Dennis what did you do
This PR is even worse
Avatar
Dennis 28-Oct-19 01:16 PM
Yep 😅
But at least this one only has the files it's supposed to have
Avatar
grian 28-Oct-19 01:19 PM
dennis bad pepega
Avatar
Dennis 28-Oct-19 01:19 PM
If you ignore the delete commits, the PR is good
Avatar
Kroppeb 28-Oct-19 01:52 PM
breathes
Can I suggest using git bash
and just squashing all your commits
Avatar
Dennis 29-Oct-19 04:08 PM
Added sounds, thought those were still missing
I tried squashing those other commits but that didn't work, is it a problem if it's kept like this?
Avatar
Kroppeb 29-Oct-19 04:20 PM
It's ugly
do you have git bash installed?
Avatar
Misode 29-Oct-19 04:33 PM
Tbh it's not that big of a deal, they will be squashed later
Avatar
Dennis 29-Oct-19 05:18 PM
I do have git bash
But when I tried to do it in another branch it didnt work
Avatar
Dennis 01-Dec-19 04:44 PM
About that last comment, the torch indeed gets lost if an entity is hit. Ideally it would drop the torch at that entity, but I'm not sure how exactly. I don't think the damage is really a problem as throwing a torch at someone would still hurt
Avatar
Bloo 01-Dec-19 05:18 PM
This is fine. You're shooting a mob
Avatar
Dennis 02-Dec-19 01:17 PM
So I can add that items can also be used to shoot fish as in #idea-discussion , but for how long should it stay alive?
Currently they die after 2 seconds
Avatar
Misode 02-Dec-19 01:35 PM
Oh that's quite short
Avatar
Dennis 02-Dec-19 02:34 PM
It is, but that's without any extra nbt, just wither effect
And I couldnt really find a good way to stop the player from picking up the fish with a bucket
Avatar
Misode 02-Dec-19 03:42 PM
Can they be picked up while not in water?
Avatar
Dennis 02-Dec-19 03:54 PM
Yes
Any time with a water bucket
Avatar
Dennis 12-Dec-19 02:59 PM
I haven't really finished this because I didn't get more feedback, is there any way to prevent a fish from being picked up? Otherwise it could just turn the fish items into alive fish but I'm not sure if we want that
Avatar
Misode 12-Dec-19 03:00 PM
If you pick up a fish, does it preserve nbt?
Avatar
Dennis 12-Dec-19 03:00 PM
I think it's just a normal pufferfish bucket item
Avatar
Misode 12-Dec-19 03:00 PM
If so you could just give it an empty loot table
Avatar
Dennis 12-Dec-19 03:02 PM
yes it loses its data
Avatar
Misode 12-Dec-19 03:03 PM
Yeah just tested 😦
Avatar
Dennis 12-Dec-19 03:24 PM
was hoping at least the ghast would have a hitbox big enough to cover the fish, but sadly no
Avatar
Misode 12-Dec-19 03:26 PM
lol
Exported 209 message(s)