[Mod] Vehicles: Cart
For the pickup/crash bug, change the line
add_item("craft vehicles:cart 1") to add_item("main" ,"vehicles:cart")
Edit:
The 'q' drop issue looks like it was due to the on_drop call, corrected by changing to drop. Though right now I seem to be dropping all in my inventory (2) rather than 1 as depicted in the line.
The facing issue only occurs with newly placed carts in 20120122. If you bring a world up from 20120106 with carts already in place, they look and function fine. I haven't been able to determine what isn't right anymore with the cart definition that is causing the placement issue. I've tried changing the _image definitions above with little success.
Off to bed...
add_item("craft vehicles:cart 1") to add_item("main" ,"vehicles:cart")
Code: Select all
function cart:on_punch(hitter)
self.health = self.health - 1
if self.health <= 0 then
self.object:remove()
--hitter:get_inventory():add_item("craft vehicles:cart 1")
hitter:get_inventory():add_item("main" ,"vehicles:cart")
end
end
The 'q' drop issue looks like it was due to the on_drop call, corrected by changing to drop. Though right now I seem to be dropping all in my inventory (2) rather than 1 as depicted in the line.
Code: Select all
minetest.register_craftitem("vehicles:cart", {
tile_images = {"vehicles_cart_top.png","vehicles_cart_top.png",
"vehicles_cart_side.png","vehicles_cart_side.png","vehicles_cart_side.png","vehicles_cart_side.png"},
inventory_image = "vehicles_cart_inventory.png",
walkable = true,
climbable = true,
description = "Cart",
--on_drop = function(item, dropper, pos)
drop = '"vehicles:cart" 1',
--minetest.env:add_entity({x = round(pos.x), y = round(pos.y), z = round(pos.z)}, "vehicles:cart")
--return true
--end
})
The facing issue only occurs with newly placed carts in 20120122. If you bring a world up from 20120106 with carts already in place, they look and function fine. I haven't been able to determine what isn't right anymore with the cart definition that is causing the placement issue. I've tried changing the _image definitions above with little success.
Off to bed...
Last edited by RabbiBob on Fri Mar 02, 2012 02:18, edited 1 time in total.
Well the mod from there seems to work to a degree. I crafted a cart but cant place it on the track.xyz wrote:Also you may try using this mod from my repo (it got updated someday). Will update it again when have free time.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
Thanks! I updated and it works under 20120122 when placed on a track, plus the Player movement works.xyz wrote:Also you may try using this mod from my repo (it got updated someday). Will update it again when have free time.
In testing (see video):
If I right click to place the object, it comes out as a single pane.
Using 'q' to drop places it properly, however inventory doesn't decrement by 1.
http://www.youtube.com/watch?v=eAzWJ8XKFh8
There's a reason I've been looking at this one so much, however I think I'm trying to run before I learn to walk with Lua. If you're interested, I'll toss my idea your way as I think you'll be able to pull it off.
-
- Member
- Posts: 103
- Joined: Thu Feb 16, 2012 18:04
-
- Member
- Posts: 15
- Joined: Sat Feb 11, 2012 13:32
Maybe you could download it from the link in the first post?evildrummer wrote:send me the stuff in zip file
PLz
It seems like you might want to invest in an archiver program. I recommend 7-Zip. ZIP isn't the only archive format out there and it is useful to be able to extract others yourself rather than asking that everyone use another format.
WorldEdit 1.0 released
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
i am also gettin thispoiuztr99 wrote:when i go to the rails and press q the minetest process is killed.
My Twitter - https://twitter.com/The_Mad_Beast (contact me here)
My Youtube- http://www.youtube.com/user/thebeast1maddogg
My Youtube- http://www.youtube.com/user/thebeast1maddogg
- Hackeridze
- Member
- Posts: 310
- Joined: Thu Nov 03, 2011 13:35
+1MilanFIN wrote:This so should be updated and INCLUDED to Minetest by defauld before stable 0.4 release.
My game: RTMG
GENTOO USER
GENTOO USER
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
or you could use carts by pilzadam, they transport objects.
http://minetest.net/forum/viewtopic.php?id=2451
http://minetest.net/forum/viewtopic.php?id=2451
Contributor: Plant aging library
Creator: (soon)
Creator: (soon)
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Just realised i was already using this! ThanksBelgac wrote:or you could use carts by pilzadam, they transport objects.
http://minetest.net/forum/viewtopic.php?id=2451
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
This is an old version. The new version can be found here: http://forum.minetest.net/viewtopic.php?id=2451
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
Its not a new version, its a completly different mod.kaeza wrote:This is an old version. The new version can be found here: http://forum.minetest.net/viewtopic.php?id=2451
- kaeza
- Moderator
- Posts: 2162
- Joined: Thu Oct 18, 2012 05:00
- GitHub: kaeza
- IRC: kaeza diemartin blaaaaargh
- In-game: kaeza
- Location: Montevideo, Uruguay
- Contact:
Ah! Sorry thenPilzAdam wrote:Its not a new version, its a completly different mod.kaeza wrote:This is an old version. The new version can be found here: http://forum.minetest.net/viewtopic.php?id=2451
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!
Check out my stuff! | Donations greatly appreciated! PayPal
Check out my stuff! | Donations greatly appreciated! PayPal
Who is online
Users browsing this forum: No registered users and 2 guests