(Minecraft Java 1.14.4) How do I continuously test if there is air below an entity?Minecraft - How to select flying arrows by NBT data given to them in item formHow to test for the entity closest to the player?Snowballs and Armor Stands in post-1.11Random item dropsDestroy armor on deathMy arrows aren't being executed at by a looping function/command blockHow to test for a dropped item in minecraft? 1.13.1How to create an “impact grenade” in Minecraft 1.13?How do I edit NBT tags of inventory items?(Java Minecraft 1.14) How to detect when a spash potion explodes, and it's position when it explodes?
Atari ST DRAM timing puzzle
Is The Lion King live action film made in motion capture?
Is TA-ing worth the opportunity cost?
Looking for a new job because of relocation - is it okay to tell the real reason?
Why did the RAAF procure the F/A-18 despite being purpose-built for carriers?
Pretty heat maps
Shabbat clothing on shabbat chazon
SQL Minimum Row count
Ex-contractor published company source code and secrets online
Why is there a need to prevent a racist, sexist, or otherwise bigoted vendor from discriminating who they sell to?
Plausibility of Ice Eaters in the Arctic
Is it true that control+alt+delete only became a thing because IBM would not build Bill Gates a computer with a task manager button?
Pandas: fill one column with count of # of obs between occurrences in a 2nd column
In a topological space if there exists a loop that cannot be contracted to a point does there exist a simple loop that cannot be contracted also?
Why should public servants be apolitical?
Tikzcd pullback square issue
As a 16 year old, how can I keep my money safe from my mother?
How to mark beverage cans in a cooler for a blind person?
Non-OR journals which regularly publish OR research
Is there a loss of quality when converting RGB to HEX?
Circle around all points of a layer
sed delete all the words before a match
Generator for parity?
Geometric programming: Why are the constraints defined to be less than/equal to 1?
(Minecraft Java 1.14.4) How do I continuously test if there is air below an entity?
Minecraft - How to select flying arrows by NBT data given to them in item formHow to test for the entity closest to the player?Snowballs and Armor Stands in post-1.11Random item dropsDestroy armor on deathMy arrows aren't being executed at by a looping function/command blockHow to test for a dropped item in minecraft? 1.13.1How to create an “impact grenade” in Minecraft 1.13?How do I edit NBT tags of inventory items?(Java Minecraft 1.14) How to detect when a spash potion explodes, and it's position when it explodes?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am trying to make an explosive snowball, but I need to test if there is air or a block under the snowball. I tried tags so when it is in the air the snowball gets a tag "air":
/execute as @e[type=minecraft:snowball] at @e[type=minecraft:snowball] if block ~ ~-1 ~ minecraft:air run tag @s add air
But I realized it would not remove the tag if the condition was false.
Is there a block name or something I can put in, like /execute as @e[type=minecraft:snowball] at @e[type=minecraft:snowball] if block ~ ~-1 ~ !minecraft:air run summon tnt ~ ~ ~ Fuse:0
?
minecraft minecraft-commands
New contributor
add a comment |
I am trying to make an explosive snowball, but I need to test if there is air or a block under the snowball. I tried tags so when it is in the air the snowball gets a tag "air":
/execute as @e[type=minecraft:snowball] at @e[type=minecraft:snowball] if block ~ ~-1 ~ minecraft:air run tag @s add air
But I realized it would not remove the tag if the condition was false.
Is there a block name or something I can put in, like /execute as @e[type=minecraft:snowball] at @e[type=minecraft:snowball] if block ~ ~-1 ~ !minecraft:air run summon tnt ~ ~ ~ Fuse:0
?
minecraft minecraft-commands
New contributor
add a comment |
I am trying to make an explosive snowball, but I need to test if there is air or a block under the snowball. I tried tags so when it is in the air the snowball gets a tag "air":
/execute as @e[type=minecraft:snowball] at @e[type=minecraft:snowball] if block ~ ~-1 ~ minecraft:air run tag @s add air
But I realized it would not remove the tag if the condition was false.
Is there a block name or something I can put in, like /execute as @e[type=minecraft:snowball] at @e[type=minecraft:snowball] if block ~ ~-1 ~ !minecraft:air run summon tnt ~ ~ ~ Fuse:0
?
minecraft minecraft-commands
New contributor
I am trying to make an explosive snowball, but I need to test if there is air or a block under the snowball. I tried tags so when it is in the air the snowball gets a tag "air":
/execute as @e[type=minecraft:snowball] at @e[type=minecraft:snowball] if block ~ ~-1 ~ minecraft:air run tag @s add air
But I realized it would not remove the tag if the condition was false.
Is there a block name or something I can put in, like /execute as @e[type=minecraft:snowball] at @e[type=minecraft:snowball] if block ~ ~-1 ~ !minecraft:air run summon tnt ~ ~ ~ Fuse:0
?
minecraft minecraft-commands
minecraft minecraft-commands
New contributor
New contributor
edited 7 mins ago
Adam Williams
New contributor
asked 41 mins ago
Adam WilliamsAdam Williams
112 bronze badges
112 bronze badges
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "41"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Adam Williams is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f355935%2fminecraft-java-1-14-4-how-do-i-continuously-test-if-there-is-air-below-an-enti%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Adam Williams is a new contributor. Be nice, and check out our Code of Conduct.
Adam Williams is a new contributor. Be nice, and check out our Code of Conduct.
Adam Williams is a new contributor. Be nice, and check out our Code of Conduct.
Adam Williams is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Arqade!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f355935%2fminecraft-java-1-14-4-how-do-i-continuously-test-if-there-is-air-below-an-enti%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown