Making an npc die when it touches a certain block.

General discussion about Super Mario Bros. X.

Moderator: Userbase Moderators

NRG Bandit
Koopa
Koopa
Posts: 16
Joined: Mon Jun 30, 2025 9:55 pm
Flair: 𝕿𝖍𝖊 𝕺𝖓𝖊 𝕬𝖓𝖉 𝕺𝖓𝖑𝖞
Pronouns: Yes
Contact:

Making an npc die when it touches a certain block.

Postby NRG Bandit » Tue Aug 05, 2025 7:37 pm

Is it possible to change an npcs setting so that it dies when it touches a certain block

Tetri the Yumemi Fan
Swooper
Swooper
Posts: 71
Joined: Fri Jun 09, 2023 7:53 am
Flair: Christ is Lord
Pronouns: he/him
Contact:

Re: Making an npc die when it touches a certain block.

Postby Tetri the Yumemi Fan » Fri Aug 08, 2025 2:23 pm

idk about settings, but there is a way
step 1. edit any lava block gfx to look the same as certain block (copy and paste)
thats pretty all

Shaktool
2025 Egg Hunter
2025 Egg Hunter
Posts: 544
Joined: Thu Jul 25, 2024 5:34 am
Flair: zip zoom
Pronouns: male

Re: Making an npc die when it touches a certain block.

Postby Shaktool » Fri Aug 08, 2025 4:50 pm

Tetri the Yumemi Fan wrote:
Fri Aug 08, 2025 2:23 pm
idk about settings, but there is a way
step 1. edit any lava block gfx to look the same as certain block (copy and paste)
thats pretty all
And what if a player touches it unaware it will kill them?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Making an npc die when it touches a certain block.

Postby Emral » Fri Aug 08, 2025 6:40 pm

Version 2.1 of this pack includes something called the "Customizable NPC Remover". I haven't deeply investigated it myself, but I assume customizable means that it can check for certain IDs and remove them if they come in contact with it. And if not, it may be possible to edit the code to check for only certain IDs.
viewtopic.php?t=29888

The author of the pack may be able to help if you're struggling.

NRG Bandit
Koopa
Koopa
Posts: 16
Joined: Mon Jun 30, 2025 9:55 pm
Flair: 𝕿𝖍𝖊 𝕺𝖓𝖊 𝕬𝖓𝖉 𝕺𝖓𝖑𝖞
Pronouns: Yes
Contact:

Re: Making an npc die when it touches a certain block.

Postby NRG Bandit » Thu Aug 14, 2025 3:41 pm

Sorry for not responding, I actually found what to do. I just used a lava block and made it passable for all characters, thanks though


Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari