2
Hello! I'm looking on how to make an execute command see the block property of the block near it if it is flammable or not, if is flammable then it will continue the executing chain, if isn't then it will stop.
it could be like this:
execute if block ~ ~-1 ~ wood{Properties:12b} <- (i don't know if the block type is changeable)
BTW i'm working on a Data pack called Coalfire that allows you to make fire by just dropping 2 coal or 2 charcoal on a flammable block and I'll release this later after i finish this.
Thanks for reading and I hope you reply soon or now.
~adg175
P.S - Actually i kinda messed up my username because i accidentally put 5 instead of 7 so i got adg155 instead.
it could be like this:
execute if block ~ ~-1 ~ wood{Properties:12b} <- (i don't know if the block type is changeable)
BTW i'm working on a Data pack called Coalfire that allows you to make fire by just dropping 2 coal or 2 charcoal on a flammable block and I'll release this later after i finish this.
Thanks for reading and I hope you reply soon or now.
~adg175
P.S - Actually i kinda messed up my username because i accidentally put 5 instead of 7 so i got adg155 instead.
Create an account or sign in to comment.
6
3
Every block in 1.13 has his own id, this means oak_wood, birch_wood... And so on. You must give the if block command the block id so this would be senseless. You can tag all blocks you need in a block tag. A good tutorial you can find here. Then it would be:
execute if block ~ ~-1 ~ #coalfire:flamable (And so on...)
execute if block ~ ~-1 ~ #coalfire:flamable (And so on...)
1
So I should only tag the flammable blocks with a tag? If it is then how can I put the "if block ~ ~-1 ~ (TAG)"?
Edit: I've figured it out, add a hash (#) before the tag list name so it will detect if the block has the flammable tag, thanks a lot, or more like a ton for helping me out.
Edit: I've figured it out, add a hash (#) before the tag list name so it will detect if the block has the flammable tag, thanks a lot, or more like a ton for helping me out.
2
Nothing to thanks! The comunity need more good datapacks!
1
Try this command generator. Easy and really helpful. I use this for 1.7.10
1.7.10-1-12-2 >> https://mcstacker.bimbimma.com/
1.13 >> https://mcstacker.net/
I hope I cuold help you a little.
1.7.10-1-12-2 >> https://mcstacker.bimbimma.com/
1.13 >> https://mcstacker.net/
I hope I cuold help you a little.
1
McStacker doesn't have a /execute command generator, but it does have a "/execute" generator by string (typing it directly) which is not helpful. Thanks for reading by the way.
1
If I found it out myself, then I'll be closing this thread. But i'm still working on it.
Edit: I can't, it's hard, I really need ideas, please?
Edit: I can't, it's hard, I really need ideas, please?