2

Is there a command that can do this?

adg155's Avatar adg1552/12/19 1:49 am
2 emeralds 475 6
2/13/2019 11:00 am
oyo321's Avatar oyo321
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.
Posted by adg155's Avatar
adg155
Level 31 : Artisan Explorer
8

Create an account or sign in to comment.

6

3
02/12/2019 11:29 am
Level 40 : Master Blockhead
oyo321
oyo321's Avatar
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...)
1
02/12/2019 11:25 pmhistory
Level 31 : Artisan Explorer
adg155
adg155's Avatar
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.
2
02/13/2019 11:00 am
Level 40 : Master Blockhead
oyo321
oyo321's Avatar
Nothing to thanks! The comunity need more good datapacks!
1
02/12/2019 4:31 am
Level 24 : Expert Fisherman
Gilran
Gilran's Avatar
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
02/12/2019 11:28 pm
Level 31 : Artisan Explorer
adg155
adg155's Avatar
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
02/12/2019 1:51 amhistory
Level 31 : Artisan Explorer
adg155
adg155's Avatar
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?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome